-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
STYLE: upgrade ruff #52974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STYLE: upgrade ruff #52974
Conversation
There are still some errors. On the latest version of ruff, codes like
will raises
Meanwhile, if we just spilt the lines like
It will be revised automatically by the black hook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for working on this
match = r"(No such file or directory|没有那个文件或目录|File o directory non esistente)" | ||
match = ( | ||
r"(No such file or directory|没有那个文件或目录|" r"File o directory non esistente)" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can write this one as something like
match = '|'.join([
"No such file or directory",
"没有那个文件或目录",
"File o directory non esistente",
])
(with black
's reformatting)
pandas/core/frame.py
Outdated
lama speed 45.0 30.0 | ||
llama speed 45.0 30.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these aren't aligned anymore
I'd suggest either:
- anytime you change lama to llama, fixup the alignment
- or, just keep the
codespell
update out of this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this
.pre-commit-config.yaml
Outdated
@@ -79,12 +79,12 @@ repos: | |||
'--filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size' | |||
] | |||
- repo: https://github.com/pycqa/pylint | |||
rev: v2.16.2 | |||
rev: v3.0.0a6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like pylint have pushed a new tag, but no new release. I'd suggest reverting this change for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping on this
.pre-commit-config.yaml
Outdated
@@ -79,12 +79,12 @@ repos: | |||
'--filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size' | |||
] | |||
- repo: https://github.com/pycqa/pylint | |||
rev: v2.16.2 | |||
rev: v3.0.0a6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping on this
pandas/core/frame.py
Outdated
lama speed 45.0 30.0 | ||
llama speed 45.0 30.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this
=1.5
Outdated
@@ -0,0 +1,6 @@ | |||
Requirement already satisfied: pandas in /home/yusharthsingh/Desktop/pandas (0+untagged.32262.g3790452.dirty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small comment, rest might actually be good this time (if CI passes), thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @snorfyang !
* Bug: fix pre-commit problems * fix some errors * pre commit issues passed * Delete =1.5 * pytlint and alignment issue * fix errors * fix aligned and update ruff * Update pandas/core/series.py --------- Co-authored-by: yusharth <yusharthsingh@gmail.com> Co-authored-by: Yusharth Singh <57184245+yusharth@users.noreply.github.com> Co-authored-by: Marco Edward Gorelli <33491632+MarcoGorelli@users.noreply.github.com>
* Bug: fix pre-commit problems * fix some errors * pre commit issues passed * Delete =1.5 * pytlint and alignment issue * fix errors * fix aligned and update ruff * Update pandas/core/series.py --------- Co-authored-by: yusharth <yusharthsingh@gmail.com> Co-authored-by: Yusharth Singh <57184245+yusharth@users.noreply.github.com> Co-authored-by: Marco Edward Gorelli <33491632+MarcoGorelli@users.noreply.github.com>
* Bug: fix pre-commit problems * fix some errors * pre commit issues passed * Delete =1.5 * pytlint and alignment issue * fix errors * fix aligned and update ruff * Update pandas/core/series.py --------- Co-authored-by: yusharth <yusharthsingh@gmail.com> Co-authored-by: Yusharth Singh <57184245+yusharth@users.noreply.github.com> Co-authored-by: Marco Edward Gorelli <33491632+MarcoGorelli@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.